package cn.shentianlan.mapper;

import cn.shentianlan.criteria.TeacherCriteria;
import cn.shentianlan.domain.entity.Teacher;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author 陈俊源
 * @Description TODO
 * @Date 2021/4/1
 * @Version 1.0
 */
@Repository
public interface TeacherMapper {
    void saveTeacher(Teacher teacher);

    void updateTeacher(Teacher teacher);

    Teacher getTeacherById(Long id);

    List<Teacher> findTeacherByCriteria(TeacherCriteria criteria);

    Integer getCount(TeacherCriteria criteria);

    void deleteTeacherById(Long id);
}
